/**
 * Dart 内建类型 StringBuffer
 */
void main() {
  var sb = StringBuffer();
  sb.write("Use a StringBuffer for ");
  sb.writeAll(['efficient', 'string', 'creation'], ' ');
  sb.write(".");
  print(sb.toString());

  var sb2 = StringBuffer();
  sb2
    ..write("Use a StringBuffer for ")
    ..writeAll(['efficient', 'string', 'creation'], ' ')
    ..write(".");
  print(sb2.toString());

}
